<!-- 车位管理 -->
<template>
    <div id="body">
        <div class="head">
            <div class="head-one"><span
                    style="color:rgba(0, 0, 0, 0.447058823529412);">车行管理</span>&nbsp;/&nbsp;<span>车位管理</span></div>
            <div class="head-two">车位管理</div>
        </div>
        <div class="neck">
            <div class="neck-MultiplChoice">
                车位状态
                <div class="checks">
                    <select name="state" id="state">
                        <option value="all">全部</option>
                        <option value="UnderReview">审核中</option>
                        <option value="Approved">审核通过</option>
                        <option value="UnApproved">审核不通过</option>
                    </select>
                </div>
            </div>
            <div class="neck-box">
                <div class="neck-search">
                    车位编号
                    <input type="text" placeholder="请输入">
                </div>
            </div>
            <div class="neck-input">
                <button class="check">查询</button>
                <button class="reset">重置</button>
            </div>
        </div>
        <!-- 空白部分 -->
        <div class="mid">
            <!-- 表格组件 -->
            <ServiceLIstFrom :taberTitle="columns" :tablename="ParKing" :data="ParKingdata" :pageurl="pageurl"></ServiceLIstFrom>
        </div>
    </div>
</template>
  
<script>
import ServiceLIstFrom from "@/components/public/TaberFrom/ServiceLIstFrom"
import { parKinglistFn } from "@/config/api"
export default {
    name: "ParKing",

    data() {
        return {
            columns: [],
            ParKing: "车位列表",
            ParKingdata: [],
            pageurl:[
                "/ParkCheck","/ParKingEdit"
            ]
        };
    },
    components: {
        ServiceLIstFrom
    },
    mounted() {

    },
    created() {
        this.getParKinglist()
    },

    methods: {
        async getParKinglist() {
            let { data: res } = await parKinglistFn()
            // console.log(res)
            const { columns, ParKinglist } = res.data
            this.columns = columns;
            this.ParKingdata = ParKinglist
            console.log(this.columns, this.ParKingdata)
        }
    },
};
</script>
  
<style lang="less" scoped>
/deep/.ant-table-wrapper {
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
}

#body {
    margin: 0px;
    background-color: rgba(240, 242, 245, 1);
    background-image: none;
    width: 1136px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;

    .head {
        border-width: 0px;
        display: flex;
        flex-direction: column;
        font-family: 'MalayalamMN', 'Malayalam MN', sans-serif;
        font-weight: 400;
        font-style: normal;
        text-align: left;
        width: 1136px;
        height: 97px;
        background: inherit;
        background-color: rgba(255, 255, 255, 1);
        box-sizing: border-box;
        border-width: 1px;
        border-style: solid;
        border-color: rgba(233, 233, 233, 1);
        border-radius: 2px;
        box-shadow: none;

        .head-one {
            font-weight: 400;
            font-style: normal;
            font-size: 14px;
            line-height: 22px;
            color: #333333;
            align-self: center;
            padding: 16px 0px 0px 32px;
            box-sizing: border-box;
            width: 100%;
        }

        .head-two {
            align-self: flex-start;
            padding: 16px 0px 16px 32px;
            box-sizing: border-box;
            width: 100%;
            visibility: inherit;
            font-weight: 700;
            font-style: normal;
            font-size: 20px;
            color: rgba(0, 0, 0, 0.847058823529412);
            line-height: 28px;
        }
    }

    .neck {
        background-color: rgba(255, 255, 255, 1);
        width: 1136px;
        height: 80px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: 'Arial Normal', 'Arial', sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 13px;
        color: #333333;
        text-transform: none;
        background-color: #ffffff;
        box-sizing: border-box;
        border-width: 1px;
        border-style: solid;
        border-color: #e9e9e9;
        border-radius: 2px;
        box-shadow: none;

        .neck-MultiplChoice {
            display: flex;
            align-items: center;
            padding: 0px 0px 0px 32px;
            border-width: 0px;
            font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
            font-weight: 400;
            font-style: normal;
            color: rgba(0, 0, 0, 0.847058823529412);

            .checks {
                margin-left: 10px;
                border-width: 0px;
                width: 266px;
                height: 34px;
                display: flex;
                font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
                font-weight: 400;
                font-style: normal;
                font-size: 12px;
                color: rgba(0, 0, 0, 0.149019607843137);
                text-align: left;
                line-height: 22px;
                border: 1px solid;

                select {
                    width: 264px;
                    height: 32px;
                    background: inherit;
                    background-color: rgba(255, 255, 255, 1);
                    box-sizing: border-box;
                    border-width: 0;
                    border-style: solid;
                    // border-color: rgba(24, 144, 255, 1);
                    border-radius: 2px;
                    box-shadow: 0px 0px 8px rgb(24 144 255 / 25%);
                    font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
                    font-weight: 400;
                    font-style: normal;
                    font-size: 12px;
                    color: rgba(0, 0, 0);
                    text-align: left;
                    line-height: 22px;
                    outline-color: rgba(24, 144, 255, 1);
                    padding-left: 5px;

                    option {
                        font-size: 14px;
                        color: rgba(0, 0, 0, 0.647);
                        border-radius: 0;
                    }
                }
            }
        }

        .neck-box {
            border-width: 0px;
            height: 80px;
            background: inherit;
            background-color: rgba(255, 255, 255, 1);
            box-sizing: border-box;
            border-style: solid;
            border-color: rgba(233, 233, 233, 1);
            border-top: 0px;
            border-radius: 2px;
            border-top-left-radius: 0px;
            border-top-right-radius: 0px;
            box-shadow: none;
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 0;

            .neck-search {
                line-height: 80px;
                display: flex;
                align-items: center;
                left: 56px;
                top: 144px;
                padding-left: 20px;
                font-size: 14px;

                input {
                    border-width: 0;
                    top: 0px;
                    width: 264px;
                    height: 32px;
                    font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
                    font-weight: 400;
                    font-style: normal;
                    font-size: 12px;
                    text-align: left;
                    line-height: 32px;
                    border-color: rgba(233, 233, 233, 1);
                    border: 1px solid;
                    margin-left: 20px;
                    border-radius: 2px;
                    padding: 2px 2px 2px 10px;
                    outline-color: rgba(24, 144, 255, 1);
                    box-shadow: 0px 0px 8px rgb(24 144 255 / 25%);
                }
            }
        }

        .neck-input {
            width: 300px;
            display: flex;
            justify-content: center;

            .check {
                border-width: 0px;
                width: 72px;
                height: 32px;
                font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
                font-weight: 400;
                font-style: normal;
                font-size: 14px;
                color: #FFFFFF;
                line-height: 22px;
                align-self: center;
                padding: 0px 0px 0px 0px;
                box-sizing: border-box;
                background-color: rgb(24, 144, 255);
                margin-right: 10px;
            }

            .check:hover {
                background-color: rgba(24, 144, 255, .9)
            }

            .reset {
                border-width: 1px;
                width: 72px;
                height: 32px;
                font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
                font-weight: 400;
                font-style: normal;
                font-size: 14px;
                color: rgba(0, 0, 0, 0.647058823529412);
                line-height: 22px;
                background: inherit;
                background-color: rgba(255, 255, 255, 1);
                box-sizing: border-box;
                border-style: solid;
                border-color: rgba(217, 217, 217, 1);
                border-radius: 2px;
                box-shadow: none;
                align-self: center;
                padding: 2px 0px 2px 0px;
                box-sizing: border-box;
            }

            .reset:hover {
                color: rgb(24, 144, 255);
                border-color: rgb(24, 144, 255);
            }
        }
    }

    .mid {
        padding: 20px;
        box-sizing: border-box;
        margin-top: 20px;
        width: 1136px;

        display: flex;
        font-family: 'MalayalamMN', 'Malayalam MN', sans-serif;
        font-weight: 400;
        font-style: normal;
        text-align: left;
        background-color: #ffffff;
        border-color: #e9e9e9;
        border-width: 1px;
        border-style: solid;
        color: #333333;
        line-height: normal;
        text-transform: none;
    }
}
</style>